//
//  UINavigationController+HideNaviBar.m
//  PPDL
//
//  Created by 王洋 on 2019/9/2.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "UINavigationController+HideNaviBar.h"

@implementation UINavigationController (HideNaviBar)

//设置透明导航栏
- (void)changeTransparentNavigation {
    
    [self.navigationBar setTranslucent:true];
    [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setTintColor:[UIColor clearColor]];
}

//设置正常导航栏
- (void)changeNormalNavigation {
    
    [self.navigationBar setTranslucent:false];
    self.navigationBar.barStyle = UIStatusBarStyleDefault;
    [self.navigationBar setTintColor:UIColorHex(0x333333)];
    [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
}

@end
